<?php

/*
最近联系人model2015/11/21
*/
class recentcontactModel extends Model
{
	private $tb='recent_contact';

	//设置更新最近联系人条目
	public function set($uid,$str)
	{
		$sql="update $this->tb set content='$str' where ownid=$uid";
		return $this->db->set_query($sql);
	}

	//获取最近联系人条目
	public function get($uid)
	{
		$sql="select content from $this->tb where ownid=$uid";
		return $this->db->getOne($sql);
	}

}